

namespace HEFramework
{
    internal class Vector2Property : Property
    {
        protected override bool OnFormatCheck(string _content)
        {
            string[] temp = _content.Split(",");
            bool flag = false;
            float tempFloat;
            if (temp.Length == 2 &&
                float.TryParse(temp[0], out tempFloat) &&
                float.TryParse(temp[1], out tempFloat))
            {
                flag = true;
            }
            return flag;
        }

        public override string OnEmptyReplace()
        {
            return "0,0";
        }

        public override string GetParseFunc()
        {
            return "DataTableExtension.ParseVector2";
        }

        public override string GetArrParseFunc()
        {
            return "DataTableExtension.ParseVector2Arr";
        }
    }
}

